const path = require("path");
process.env.NODE_ENV = "dev";
const basePath = process.env.CONF_PATH || process.cwd();

const ServerConfig = require(path.join(
  basePath,
  `/config.${process.env.NODE_ENV}/serverConfig.json`
));
const MongodbConfig = require(path.join(
  basePath,
  `/config.${process.env.NODE_ENV}/mongodbConfig.json`
));

module.exports = {
  ServerConfig,
  MongodbConfig,
};
